"""
requests模块访问网络API
- json反序列化

Version: 0.1
Author: yuwl
Date：2024-4-07
"""

import requests
import json

def main():
    resp = requests.get('https://api.oioweb.cn/api/weather/GetWeather')
    data_model = json.loads(resp.text)
    print(data_model['code'])


if __name__ == '__main__':
    main()